import config from '../assets/js/config'
let type = config.type
// let userNum = type === '2' ? 'zhaozm01' : sessionStorage.getItem('userNum')
let userNum = sessionStorage.getItem('userNum')

// userNum = 'zhaozm01'
// userNum: ' zhaozm01  shij13

export const state = {
  isLoading: false,
  routerAni: '',
  userNum,
  // 费控用户信息
  userInfo: sessionStorage.getItem('userInfo') ? JSON.parse(sessionStorage.getItem('userInfo')) : {},
  sessionID: sessionStorage.getItem('sessionID'),
  // 首页个人额度数据
  getBudgetDo: sessionStorage.getItem('getBudgetDo') ? JSON.parse(sessionStorage.getItem('getBudgetDo')) : [],
  // 当前正在填写的单据信息
  bizAccountBill: sessionStorage.getItem('bizAccountBill') ? JSON.parse(sessionStorage.getItem('bizAccountBill')) : {},
  // 出差类型
  evectionExpense: sessionStorage.getItem('evectionExpense') ? JSON.parse(sessionStorage.getItem('evectionExpense')) : {}
}
